﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.Database;
using Business.Entities;
namespace Negocio
{
    public class PlanLogic
    {
       Data.Database.PlanAdapter plandata;
        public PlanLogic()
        {
            plandata = new Data.Database.PlanAdapter();
        }
        public List<Plan> GetAll()
        {
            return plandata.GetAll();
        }
        public Plan GetOne(int ID)
        {
            return plandata.GetOne(ID);
        }
        public void Save(Business.Entities.Plan AdmUsr)
        {
            plandata.Save(AdmUsr);
        }

        public void delete(int id)
        {
            plandata.Delete(id);
        }

        public void save(Business.Entities.Plan pl)
        {
            plandata.Save(pl);
        }
    }
}
